<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2017/5/14 0014
  Time: 13:48
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/views/include/header.jsp" %>
<html>
<head>
    <title>订单列表</title>
    <link rel="stylesheet" href="${Layui}/css/layui.css" media="all">
    <script src="${jquery}/jquery-3.1.1.js" charset="utf-8"></script>
    <script src="${Layui}/layui.js" charset="utf-8"></script>
    <script src="${Js}/admin/coupons.js" charset="utf-8"></script>
</head>

<body>
<form class="layui-form ">
    <div class="layui-form-item">
        <label class="layui-form-label">优惠券号</label>
        <div class="layui-input-block">
            <input type="text" disabled value="${upcroCoupons.id}" name="id" lay-verify="title" autocomplete="off"
                   placeholder="请输入标题" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">优惠券类型</label>
            <div class="layui-input-inline">
                <select name="upcroCouponstype">
                    <option value="${upcroCoupons.type}">${SysDict['cropons_type'][upcroCoupons.type]}</option>
                    <c:forEach items="${SysDict['cropons_type']}" var="type">
                        <c:if test="${upcroCoupons.type != type.key}">
                            <option value="${type.key}">${type.value}</option>
                        </c:if>
                    </c:forEach>
                </select>
            </div>
            <label class="layui-form-label">优惠券状态</label>
            <div class="layui-input-inline">
                <select name="upcroCouponsstauts">
                    <option value="${upcroCoupons.status}">${SysDict['cropons_status'][upcroCoupons.status]}</option>
                    <c:forEach items="${SysDict['cropons_status']}" var="pay">
                        <c:if test="${upcroCoupons.status != pay.key}">
                            <option value="${pay.key}">${pay.value}</option>
                        </c:if>
                    </c:forEach>
                </select>
            </div>
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">详细描述</label>
        <div class="layui-input-block">
            <input type="text" value="${upcroCoupons.description}" name="description"
                   lay-verify="required" placeholder="请输入" autocomplete="off" class="layui-input">
        </div>
    </div>

    <div class="layui-form-item">
        <div class="layui-inline">
            <label class="layui-form-label">截止时间</label>
            <div class="layui-input-inline">
                <input type="text" value="${upcroCoupons.offdate}" name="offdate" placeholder="创建时间" autocomplete="off"
                       class="layui-input" onclick="layui.laydate({elem: this, istime: true, format: 'YYYY-MM-DD hh:mm:ss'})">
            </div>
        </div>
    </div>

    <div class="layui-form-item">
        <label class="layui-form-label">价值</label>
        <div class="layui-input-block">
            <input type="text" value="${upcroCoupons.value}" name="value" lay-verify="required" id="value"
                   autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">限额</label>
        <div class="layui-input-block">
            <input type="text" value="${upcroCoupons.uplimit}" name="uplimit" lay-verify="required" id="uplimit"
                   autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <a class="layui-btn" lay-submit lay-filter="updatecoupons">立即提交</a>
        </div>
    </div>
</form>
</body>
</html>